<?php


return [

    // 关于我们
    'aboutus' => '',
    'problem' => [
        'notice' => ''
    ],

    // 会员配置
    'member' => [
        'is_active_default' => 1,
        'is_lock_default' => 0,

        // 用户协议
        'protocol' => '',
        // 隐私协议
        'private_protocol' => '',

        'letter'=>[
            'body'=>'',
            'bg'=>'',
        ],

        // 是否提醒绑定手机号
        'enabled_mobile_bind_alert' => 0,

        // 头像
        'default_avatar' => '/images/default_avatar.jpg',

        // Socialite
        'socialite' => [
            'qq' => [
                'app' => 'qq',
                'name' => 'QQ',
                'logo' => '/images/icons/qq.svg',
                'enabled' => 0,
            ],
            'wechat' =>
                [
                    'client_id' 		=> 'wx30284fcf5414bee2',
                    'client_secret' => 'ef8ca67acfd7a6f0bf348712426e34cc',
                    'redirect' 			=> '',

                ]


        ],

        // Invite
        'invite' => [
            // 免费用户是否可以邀请
            'free_user_enabled' => false,
            // 邀请用户奖励
            'invite_user_reward' => 30,
            // 被邀请用户奖励
            'invited_user_reward' => 10,
            // 上下级关系持续时间
            'effective_days' => 365,
            // 邀请余额是否可以支付
            'invite_balance_can_pay' => 1,
            // 订单抽成
            'per_order_draw' => 0.01,
        ],
        'promo_code' => [
            // 免费用户是否可以邀请
            'expired_at' => 3,

            //新用户注册奖励
            'invited_user_reward' => 10,

        ],

        // 积分
        'credit1' => [
            // 注册送
            'register' => 0,
            // 看完课程
            'watched_course' => 0,
            // 看完视频
            'watched_video' => 0,
            // 支付订单
            'paid_order' => 0,
            // 邀请用户
            'invite' => 0,
        ],

        // 注册送VIP
        'register' => [
            'vip' => [
                // 开启[1:是,0否]
                'enabled' => 0,
                // VIP[id]
                'role_id' => 0,
                // 赠送天数
                'days' => 0,
            ]
        ],
    ],
    'chat' => [
        'default_avatar' => '/images/default_avatar.jpg',
    ],

    'company' => [
        'logo' => '/images/company_default_avatar.jpg',
        'background' => '/images/company_default_background.jpg',
    ],
    'user' => [
        'default_avatar' => '/images/shop_default_avatar.jpg',
    ],


    // 上传
    'upload' => [
        'image' => [
            'disk' => 'oss',
            'path' => '/',
            'params' => '',
        ],
        'videoLocal' => [
            'disk' => 'public',
            'path' => 'video',
            'params' => '',
        ],
        'video' => [
            'aliyun' => [
                'region' => 'cn-shenzhen',
                'host' => 'vod.cn-shenzhen.aliyuncs.com',
                'access_key_id' => 'LTAIBRF0jx4HRk94',
                'access_key_secret' => 'qZbmmxRmRF9kYNBnbtbs2yYa9pe48I',
                'template_group_id'=>'8a333e4be61da47eea19552aafc682ae',
            ],

        ],
        'attach' => [
            'course' => [
                'disk' => 'oss',
                'path' => 'course',

            ],
        ],
    ],

    // 管理员配置
    'administrator' => [
        'super_slug' => 'administrator',
    ],

    // 支付网关
    'payment' => [
        'alipay' => [
            'enabled' => 0,
            'handler' => \App\Zesow\Payment\Alipay\Alipay::class,
            'name' => '支付宝',
            'logo' => '/images/icons/alipay.png',
            'sign' => 'alipay',
            'default_method' => 'web',
            'pc' => 'web',
            'h5' => 'wap',
            'app'=>'app'
        ],

        'wechat' => [
            'enabled' => 0,
            'handler' => \App\Zesow\Payment\Wechat\WechatScan::class,
            'name' => '微信支付',
            'logo' => '/images/icons/wechat-pay.png',
            'sign' => 'wechat',
            'default_method' => 'scan',
            'pc' => 'scan',
        ],
        'wechat-jsapi' => [
            'enabled' => 1,
            'name' => '微信支付',
            'logo' => '/images/icons/wechat-pay.png',
            'sign' => 'wechat-jsapi',
            'handler' => \App\Zesow\Payment\Wechat\WechatJSAPI::class,
            'wechat' => 'mp',
        ],
        'wechat-mini' => [
            'enabled' => 0,
            'name' => '微信支付',
            'logo' => '/images/icons/wechat-pay.png',
            'sign' => 'wechat-mini',
            'handler' => \App\Zesow\Payment\Wechat\WechatMini::class,
            'mini' => 'mini',
        ],
        'handPay' => [
            'enabled' => 1,
            'handler' => \App\Zesow\Payment\HandPay\HandPay::class,
            'name' => '手动打款',
            'logo' => '/images/icons/handpay.png',
            'sign' => 'handPay',
            'default_method' => 'hand',
            'pc' => 'hand',
            'h5' => 'hand',
            'wechat' => 'hand',
        ],
    ],

    // SEO
    'seo' => [
        'index' => [
            'title' => '首页',
            'keywords' => '',
            'description' => '',
        ],
        'course_list' => [
            'title' => '所有课程',
            'keywords' => '',
            'description' => '',
        ],
        'role_list' => [
            'title' => 'VIP',
            'keywords' => '',
            'description' => '',
        ],
    ],

    // 系统配置
    'system' => [
        // ICP备案
        'icp' => '',
        'icp_link' => '',
        // 公安网备案
        'icp2' => '',
        'icp2_link' => '',
        // 网站logo
        'logo' => '/images/logo.png',
        // 播放器封面
        'player_thumb' => '/images/player-thumb.png',

        // PC网站地址
        'pc_url' => '',

        // H5网站地址
        'h5_url' => '',

        // 播放器
        'player' => [
            // 跑马灯
            'enabled_bullet_secret' => 0,
            'bullet_secret' => [
                'text' => '', //默认为当前用户手机号
                'size' => 0, //默认14px
                'color' => '', //默认red
                'opacity' => 1, //默认1
            ],
            // 腾讯云播放key
            'tencent_play_key' => '',
            // 播放格式
            'video_format_whitelist' => '',
        ],

        // 缓存开关

        'cache' => [
            'status' => (int)env('ZESOW_CACHE_ENABLED', 1 ),
            'expire' => 3600 * 10,
        ],

        // 短信频率
        'limiter' => [
            'sms' => [
                'times' => 6,
                'minutes' => 1,
            ]
        ],

        // 默认短信服务商
        'sms' => 'aliyun',

        // 登录
        'login' => [
            'limit' => [
                'rule' => \App\Constant\FrontendConstant::LOGIN_LIMIT_RULE_DEFAULT,
            ],
            'bg'=>'/images/default_avatar.jpg'
        ],

        // 多语言
        'lang' => \App\Constant\FrontendConstant::LANG_ZH,
    ],


    // 第三方服务
    'services' => [
        // 高德地图配置（用于ip解析）
        'amap' => [
            // @see https://lbs.amap.com/api/webservice/guide/create-project/get-key
            'key' => '8a1567388186d4898829addde7f1cbe2',
        ],
    ],

    // 微信公众号配置
    'mp_wechat' => [
        'app_id' => '',
        'app_secret' => '',
        'token' => '',
        'aes_key' => '',
        // 开启授权登录
        'enabled_oauth_login' => 0,
        // 开启PC扫码登录
        'enabled_scan_login' => 0,
        // 扫码登录后的提示语
        'scan_login_alert' => '',
        // 开启微信浏览器的分享
        'enabled_share' => 0,
        // 微信H5分享自定义内容
        'share' => [
            // 分享标题
            'title' => '',
            // 分享描述
            'desc' => '',
            // 分享的图片
            'imgUrl' => '',
        ],
    ],
    'wechat_app' => [
        'app_id' => 'wx981752ba7f341b1f',
        'app_secret' => 'ebba16a892c1996987a503cd5eed19ed',

    ],
    'douyin'=>
    [

        'app_id' => 'tt7ee2085fe1d300be01',
        'app_secret' => '94acba404a0dbe8f4f02b3325b8820db56208d8d',
    ],
    'socialite' => [

        'wechat' =>
            [
                'client_id' 		=> 'wx30284fcf5414bee2',
                'client_secret' => 'ef8ca67acfd7a6f0bf348712426e34cc',
                'redirect' 			=> '',

            ]


    ],
    'yingshi'=>[

        'app_key'=>'3266d07f6a7b4fb1a85b6d85d162730c',
        'secret'=>'f6369cdaedc2836a9bed20bba827c4c1'
    ]


];
